package chapter7;

/**
 * Created by lenovo on 2016/3/22.
 */
public class Airplane implements Flyer {
    protected String name;
    public Airplane(String name){
        this.name=name;
    }
    @Override
    public void fly(){
        System.out.printf("飞机 %s 在飞%n",name);
    }
}
